package com.company.cloud.user.modules.mgr.controller.req;

import java.util.Set;

import javax.validation.constraints.NotEmpty;

import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.constant.BaseConstant.YNEnum;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class RoleSaveParam extends BaseParam {

	@ApiModelProperty(value = "角色编号", required = true)
	@NotEmpty(message = "角色编号不能为空")
	private String code;

	@ApiModelProperty(value = "角色名称", required = true)
	@NotEmpty(message = "角色名称不能为空")
	private String name;

	@ApiModelProperty(value = "公司编号")
	private String companyNo;

	@ApiModelProperty(value = "角色备注")
	private String remark;

	@ApiModelProperty(value = "是否系统角色(YN)", required = true)
	private String isSys = YNEnum.NO.getCode();

	@ApiModelProperty(value = "权限")
	private Set<String> permissionCodes;

}
